package com.qingmi.farmer.data.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * 商品类型
 * Created by 67535 on 2018/5/21.
 */
public class GoodsType {

    @SerializedName("ParameterId")
    private String id;

    @SerializedName("Name")
    private String name;

    @SerializedName("ChildParameter")
    private List<GoodsType> childParameter;

    public GoodsType() {
    }

    public GoodsType(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<GoodsType> getChildParameter() {
        return childParameter;
    }

    public void setChildParameter(List<GoodsType> childParameter) {
        this.childParameter = childParameter;
    }

    @Override
    public String toString() {
        return  name;
    }
}
